<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    // 全局配置url
    // 配置基本url
    axios.defaults.baseURl  = "http://s.linweiqin.com";
    axios.get("/api/s/getIndexLoopimg")
    .then((res)=>{
        console.log(res);
    }).catch((err)=>{
        console.log(err);
    });
    let instance = axios.create({
        baseURL:"https://apimusic.linweiqin.com",
    })
    instance.get("/song/url?id=421423808").then((res)=>{
        console.log(res);
    }).catch((err)=>{
        console.log(err);
    })
</script>
</html>